<?php

/**
 * Implements hook_views_default_views().
 */
function ui_mlt_views_default_views() {
  $view = new view();
  $view->name = 'admin_ui_mlt';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'ui_mlt';
  $view->human_name = '管理快捷链接';
  $view->core = 7;
  $view->api_version = '3.0';
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Master */
  $handler = $view->new_display('default', 'Master', 'default');
  $handler->display->display_options['title'] = '管理快捷链接';
  $handler->display->display_options['use_more_always'] = FALSE;
  $handler->display->display_options['use_more_text'] = '更多';
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['access']['perm'] = 'ui mlt add';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['exposed_form']['type'] = 'basic';
  $handler->display->display_options['exposed_form']['options']['submit_button'] = '应用';
  $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
  $handler->display->display_options['exposed_form']['options']['reset_button_label'] = '重置';
  $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = '排序依据';
  $handler->display->display_options['exposed_form']['options']['sort_asc_label'] = '升序';
  $handler->display->display_options['exposed_form']['options']['sort_desc_label'] = '降序';
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '50';
  $handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = '每页条目数';
  $handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- 全部 -';
  $handler->display->display_options['pager']['options']['expose']['offset_label'] = '偏移量';
  $handler->display->display_options['pager']['options']['tags']['first'] = '« 第一页';
  $handler->display->display_options['pager']['options']['tags']['previous'] = '‹ 上一页';
  $handler->display->display_options['pager']['options']['tags']['next'] = '下一页 ›';
  $handler->display->display_options['pager']['options']['tags']['last'] = '末页 »';
  $handler->display->display_options['style_plugin'] = 'table';
  $handler->display->display_options['style_options']['columns'] = [
    'id' => 'id',
    'item_title' => 'item_title',
    'root_path' => 'root_path',
    'item' => 'item',
    'changed' => 'changed',
    'edit_link' => 'edit_link',
  ];
  $handler->display->display_options['style_options']['class'] = '';
  $handler->display->display_options['style_options']['default'] = '-1';
  $handler->display->display_options['style_options']['info'] = [
    'id' => [
      'sortable' => 1,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ],
    'item_title' => [
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ],
    'root_path' => [
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ],
    'item' => [
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ],
    'changed' => [
      'sortable' => 1,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ],
    'edit_link' => [
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ],
  ];
  /* 字段: UI MLT: Ui mlt ID */
  $handler->display->display_options['fields']['id']['id'] = 'id';
  $handler->display->display_options['fields']['id']['table'] = 'ui_mlt';
  $handler->display->display_options['fields']['id']['field'] = 'id';
  /* 字段: UI MLT: Item_title */
  $handler->display->display_options['fields']['item_title']['id'] = 'item_title';
  $handler->display->display_options['fields']['item_title']['table'] = 'ui_mlt';
  $handler->display->display_options['fields']['item_title']['field'] = 'item_title';
  $handler->display->display_options['fields']['item_title']['label'] = '标题';
  /* 字段: UI MLT: Root_path */
  $handler->display->display_options['fields']['root_path']['id'] = 'root_path';
  $handler->display->display_options['fields']['root_path']['table'] = 'ui_mlt';
  $handler->display->display_options['fields']['root_path']['field'] = 'root_path';
  $handler->display->display_options['fields']['root_path']['label'] = '路径';
  /* 字段: UI MLT: Item */
  $handler->display->display_options['fields']['item']['id'] = 'item';
  $handler->display->display_options['fields']['item']['table'] = 'ui_mlt';
  $handler->display->display_options['fields']['item']['field'] = 'item';
  $handler->display->display_options['fields']['item']['label'] = '链接';
  /* 字段: UI MLT: 修改时间 */
  $handler->display->display_options['fields']['changed']['id'] = 'changed';
  $handler->display->display_options['fields']['changed']['table'] = 'ui_mlt';
  $handler->display->display_options['fields']['changed']['field'] = 'changed';
  $handler->display->display_options['fields']['changed']['date_format'] = 'short';
  $handler->display->display_options['fields']['changed']['second_date_format'] = 'long';
  /* 字段: UI MLT: 编辑 */
  $handler->display->display_options['fields']['edit_link']['id'] = 'edit_link';
  $handler->display->display_options['fields']['edit_link']['table'] = 'ui_mlt';
  $handler->display->display_options['fields']['edit_link']['field'] = 'edit_link';
  /* 排序标准: UI MLT: 创建时间 */
  $handler->display->display_options['sorts']['created']['id'] = 'created';
  $handler->display->display_options['sorts']['created']['table'] = 'ui_mlt';
  $handler->display->display_options['sorts']['created']['field'] = 'created';
  /* 过滤规则: UI MLT: Item_title */
  $handler->display->display_options['filters']['item_title']['id'] = 'item_title';
  $handler->display->display_options['filters']['item_title']['table'] = 'ui_mlt';
  $handler->display->display_options['filters']['item_title']['field'] = 'item_title';
  $handler->display->display_options['filters']['item_title']['operator'] = 'word';
  $handler->display->display_options['filters']['item_title']['group'] = 1;
  $handler->display->display_options['filters']['item_title']['exposed'] = TRUE;
  $handler->display->display_options['filters']['item_title']['expose']['operator_id'] = 'item_title_op';
  $handler->display->display_options['filters']['item_title']['expose']['label'] = '标题';
  $handler->display->display_options['filters']['item_title']['expose']['operator'] = 'item_title_op';
  $handler->display->display_options['filters']['item_title']['expose']['identifier'] = 'item_title';
  $handler->display->display_options['filters']['item_title']['expose']['remember_roles'] = [
    2 => '2',
  ];
  /* 过滤规则: UI MLT: Item */
  $handler->display->display_options['filters']['item']['id'] = 'item';
  $handler->display->display_options['filters']['item']['table'] = 'ui_mlt';
  $handler->display->display_options['filters']['item']['field'] = 'item';
  $handler->display->display_options['filters']['item']['operator'] = 'word';
  $handler->display->display_options['filters']['item']['group'] = 1;
  $handler->display->display_options['filters']['item']['exposed'] = TRUE;
  $handler->display->display_options['filters']['item']['expose']['operator_id'] = 'item_op';
  $handler->display->display_options['filters']['item']['expose']['label'] = '路径';
  $handler->display->display_options['filters']['item']['expose']['operator'] = 'item_op';
  $handler->display->display_options['filters']['item']['expose']['identifier'] = 'item';
  $handler->display->display_options['filters']['item']['expose']['remember_roles'] = [
    2 => '2',
  ];
  /* 过滤规则: UI MLT: Root_path */
  $handler->display->display_options['filters']['root_path']['id'] = 'root_path';
  $handler->display->display_options['filters']['root_path']['table'] = 'ui_mlt';
  $handler->display->display_options['filters']['root_path']['field'] = 'root_path';
  $handler->display->display_options['filters']['root_path']['operator'] = 'word';
  $handler->display->display_options['filters']['root_path']['group'] = 1;
  $handler->display->display_options['filters']['root_path']['exposed'] = TRUE;
  $handler->display->display_options['filters']['root_path']['expose']['operator_id'] = 'root_path_op';
  $handler->display->display_options['filters']['root_path']['expose']['label'] = '链接';
  $handler->display->display_options['filters']['root_path']['expose']['operator'] = 'root_path_op';
  $handler->display->display_options['filters']['root_path']['expose']['identifier'] = 'root_path';
  $handler->display->display_options['filters']['root_path']['expose']['remember_roles'] = [
    2 => '2',
  ];

  /* Display: Page */
  $handler = $view->new_display('page', 'Page', 'page');
  $handler->display->display_options['path'] = 'admin/content/admin-ui-mlts';
  $handler->display->display_options['menu']['type'] = 'tab';
  $handler->display->display_options['menu']['title'] = '快捷链接';
  $handler->display->display_options['menu']['weight'] = '0';
  $handler->display->display_options['menu']['context'] = 0;
  $handler->display->display_options['menu']['context_only_inline'] = 0;
  $translatables['admin_ui_mlt'] = [
    t('Master'),
    t('管理快捷链接'),
    t('更多'),
    t('应用'),
    t('重置'),
    t('排序依据'),
    t('升序'),
    t('降序'),
    t('每页条目数'),
    t('- 全部 -'),
    t('偏移量'),
    t('« 第一页'),
    t('‹ 上一页'),
    t('下一页 ›'),
    t('末页 »'),
    t('Ui mlt ID'),
    t('.'),
    t(','),
    t('标题'),
    t('路径'),
    t('链接'),
    t('修改时间'),
    t('编辑'),
    t('Page'),
  ];


  $views[$view->name] = $view;
  return $views;
}
